package com.lychee.moli.dao;

import com.lychee.moli.entity.StoreEntity;
import org.apache.ibatis.annotations.Param;

/**
 * Created by Lychee on 2018/4/12 10:00.
 * <p>
 * Author:Hejingzhou
 * <p>
 * Email:tcowork@163.com
 */
public interface IStoreDao {

    /**
     * 创建店铺
     *
     * @return
     */
    int createStore(StoreEntity storeEntity);

    /**
     * 存储店铺封面图片
     *
     * @param storeId
     * @param imagePath
     * @return
     */
    int saveCover(@Param("storeId") String storeId, @Param("imagePath") String imagePath);


    /**
     * 查询店铺详情
     *
     * @param storeId
     * @return
     */
    StoreEntity queryStoreDetail(String storeId);

}
